//
//  ETVCrentMoneyTableViewCell.m
//  Jyxt
//
//  Created by 宫璞 on 2017/9/11.
//  Copyright © 2017年 DaLian Rental Housing Management. All rights reserved.
//

#import "ETVCrentMoneyTableViewCell.h"
#import "Hcolors.h"
@implementation ETVCrentMoneyTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.rentMoneyLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, 80, 24)];
        self.rentMoneyLabel.textColor = COLOR_NEW_153;
        self.rentMoneyLabel.text = @"月租金";
        self.rentMoneyLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.rentMoneyLabel];
        
        self.detailRentMoneyLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.rentMoneyLabel.frame.origin.x + self.rentMoneyLabel.frame.size.width + 10, 10, 80, 24)];
        self.detailRentMoneyLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.detailRentMoneyLabel];
        
        self.zeroLineLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 44, [UIScreen mainScreen].bounds.size.width, 0.5)];
        self.zeroLineLabel.backgroundColor = COLOR_NEW_237;
        [self addSubview:self.zeroLineLabel];
        
        self.paymentStyleLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, self.zeroLineLabel.frame.origin.y + self.zeroLineLabel.frame.size.height  +10, 80, 24)];
        self.paymentStyleLabel.text = @"付款方式";
        self.paymentStyleLabel.textColor = COLOR_NEW_153;
        self.paymentStyleLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.paymentStyleLabel];
        
        self.detailPaymentStyleLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.paymentStyleLabel.frame.origin.x + self.paymentStyleLabel.frame.size.width + 10, self.zeroLineLabel.frame.origin.y + self.zeroLineLabel.frame.size.height  +10, [UIScreen mainScreen].bounds.size.width - 10 - 10 - 80, 24)];
        self.detailPaymentStyleLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.detailPaymentStyleLabel];
        
    }
    return self;
}


- (void)setContent:(McontractDetailModel *)rentMoneySection{
    self.detailRentMoneyLabel.text = [NSString stringWithFormat:@"%ld元",(long)rentMoneySection.monthlyRent];
    self.detailPaymentStyleLabel.text = rentMoneySection.settlementCycle;
}


@end
